//package utility;
//
//
//
//import java.util.ArrayList;
//import java.util.LinkedList;
//import java.util.List;
//import java.util.Map;
//
//public class MatrixMap {
//
//	private Cell[][] matrix;
//	private int sizeX,sizeY;
//	
//	private static Map<String, List<Triple<Integer, Integer>>> hotSpotStreet;	//memorizzo x ogni strada i punti necessari x la sua codifica 
//	
//	//memorizzo gli le celle che fanno riferimento ad un incrocio
//	private LinkedList<Triple<Integer,Integer>> intersection;
//	
//	public MatrixMap() {
//		//this.sizeX=-1;
//		//this.sizeY=-1;
//		
////		intersection = new LinkedList<Pair<Integer,Integer>>();
////	
////		sizeX = 5;
////		sizeY = 5;
////		matrix = new Cell[sizeX][sizeY];
////		Cell c11 = new Cell(typeCell.VACUUM);
////		Cell c12 = new Cell(typeCell.VACUUM);
////		Cell c13 = new Cell(typeCell.VACUUM);
////		Cell c14 = new Cell(typeCell.VACUUM);
////		Cell c15 = new Cell(typeCell.STREET);
////		c15.addStreet("b");
////		Cell c21 = new Cell(typeCell.INTERSECTION);
////		c21.addStreet("a");
////		Cell c22 = new Cell(typeCell.STREET);
////		c22.addStreet("a");
////		Cell c23 = new Cell(typeCell.VACUUM);
////		Cell c24 = new Cell(typeCell.VACUUM);
////		Cell c25 = new Cell(typeCell.STREET);
////		c25.addStreet("b");
////		Cell c31 = new Cell(typeCell.VACUUM);
////		Cell c32 = new Cell(typeCell.STREET);
////		c32.addStreet("a");
////		Cell c33 = new Cell(typeCell.STREET);
////		c33.addStreet("a");
////		Cell c34 = new Cell(typeCell.STREET);
////		c34.addStreet("a");
////		Cell c35 = new Cell(typeCell.INTERSECTION);
////		c35.addStreet("a");
////		c35.addStreet("b");
////		Cell c41 = new Cell(typeCell.VACUUM);
////		Cell c42 = new Cell(typeCell.VACUUM);
////		Cell c43 = new Cell(typeCell.VACUUM);
////		Cell c44 = new Cell(typeCell.VACUUM);
////		Cell c45 = new Cell(typeCell.STREET);
////		c45.addStreet("b");
////		Cell c51 = new Cell(typeCell.VACUUM);
////		Cell c52 = new Cell(typeCell.VACUUM);
////		Cell c53 = new Cell(typeCell.VACUUM);
////		Cell c54 = new Cell(typeCell.VACUUM);
////		Cell c55 = new Cell(typeCell.INTERSECTION);
////		c55.addStreet("b");
////		
////		matrix[0][0] = c11;
////		matrix[0][1] = c12;
////		matrix[0][2] = c13;
////		matrix[0][3] = c14;
////		matrix[0][4] = c15;
////		matrix[1][0] = c21;
////		matrix[1][1] = c22;
////		matrix[1][2] = c23;
////		matrix[1][3] = c24;
////		matrix[1][4] = c25;
////		matrix[2][0] = c31;
////		matrix[2][1] = c32;
////		matrix[2][2] = c33;
////		matrix[2][3] = c34;
////		matrix[2][4] = c35;
////		matrix[3][0] = c41;
////		matrix[3][1] = c42;
////		matrix[3][2] = c43;
////		matrix[3][3] = c44;
////		matrix[3][4] = c45;
////		matrix[4][0] = c51;
////		matrix[4][1] = c52;
////		matrix[4][2] = c53;
////		matrix[4][3] = c54;
////		matrix[4][4] = c55;
////		
////		//memorizzo gli incroci!
////		intersection.add(new Pair<Integer, Integer>(0,1));
////		intersection.add(new Pair<Integer, Integer>(2,4));
////		intersection.add(new Pair<Integer, Integer>(4,4));
////	
//	}
//	
//	public static Triple<Integer,Integer> convertLenghtToCoordinates(String strada, int position) {
//	
//		List<Triple<Integer, Integer>> hotSpots = hotSpotStreet.get(strada);
//		
//		int x,y, distance=0;
//		
//		int precX = hotSpots.get(0).getFirst();
//		int precY = hotSpots.get(0).getSecond();
//		
//		Triple pair=null;
//		
//		for (int i = 1; i < hotSpots.size(); i++) {
//			
//			x = hotSpots.get(i).getFirst();
//			y = hotSpots.get(i).getSecond();
//			
//			if(precX==x) {
//				distance+=y-precY;
//				position-=distance;
//				if(position <= 0) {
//					pair = new Triple<Integer, Integer>(x, y+position);
//					break;
//				}
//			}
//			else if(precY==y) {
//				distance+=x-precX;
//				position-=distance;
//				if(position <= 0) {
//					pair = new Triple<Integer, Integer>(x+position, y);
//					break;
//				}
//			}
//		}
//		
//		return pair;
//	}
//	
//	public Cell[][] getMatrix() {
//		return matrix;
//	}
//	public void setMatrix(Cell[][] matrix) {
//		this.matrix = matrix;
//	}
//	public int getSizeX() {
//		return sizeX;
//	}
//	public void setSizeX(int sizeX) {
//		this.sizeX = sizeX;
//	}
//	public int getSizeY() {
//		return sizeY;
//	}
//	public void setSizeY(int sizeY) {
//		this.sizeY = sizeY;
//	}
//	
//	public Cell getCell(int i,int j)
//	{
//		return matrix[i][j];
//	}
//
////	public Map<String, ArrayList<Pair<Integer, Integer>>> getHotSpotStreet() {
////		return hotSpotStreet;
////	}
////
////	public void setHotSpotStreet(
////			Map<String, ArrayList<Pair<Integer, Integer>>> hotSpotStreet) {
////		this.hotSpotStreet = hotSpotStreet;
////	}
//
//	public LinkedList<Triple<Integer, Integer>> getIntersection() {
//		return intersection;
//	}
//
//	public void setIntersection(LinkedList<Triple<Integer, Integer>> intersection) {
//		this.intersection = intersection;
//	}
//	
//	
//}
